<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
td{
   border: 1px black solid;
}
table {
	border-spacing:0;
     border-collapse: collapse; 
}
thead td{
	font-size: 20px;
	font-weight: bolder;
}
tbody td:nth-child(2){
	text-align: center;
}
</style>
</head>
<body>
      <h2>Step1:选择要购买的书籍</h2>
      <form action="<%=request.getContextPath() %>/bookBuyServlet?m=getbookname" method="post">
          <table>
          <thead>
            <tr>
                <td>书名</td>
                <td>购买</td>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>Java</td>
                <td><input type="checkbox" name="bookName" value="Java"></td>
            </tr>
            <tr>
                <td>Oracle</td>
                <td><input type="checkbox" name="bookName" value="Oracle"></td>
            </tr>
            <tr>
                <td>Struts</td>
                <td><input type="checkbox" name="bookName" value="Struts"></td>
            </tr>
            <tr>
                <td>JavaWeb</td>
                <td><input type="checkbox" name="bookName" value="JavaWeb"></td>
            </tr>
            </tbody>
            <tfoot>
            <tr>
                <td colspan="2" style="text-align: right;"><input type="submit" name="bookName" value="购买"></td>
            </tr>
            </tfoot>
          </table>
      </form>
      <%
      Object meg=request.getAttribute("errorMessage");
      if(meg!=null){
      %>
      <p style="color: red;"><%=meg %></p>
      <%
      }
      %>
</body>
</html>